<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>属性管理</title>
    <script type="text/javascript" src="__CONTROLLER_VIEW__/js/jquery-1.7.2.min.js"></script>
    <link rel="stylesheet" href="__STATIC__/bootstrap/css/bootstrap.min.css" />
    <link rel="stylesheet" href="__STATIC__/bootstrap/css/bootstrap-theme.min.css" />
    <link rel="stylesheet" type="text/css" href="__STATIC__/hdjs/hdjs.css">
    <script type="text/javascript" src="__STATIC__/hdjs/hdjs.min.js"></script>
    
    <style type="text/css">
        .plus_minus{
            width: 20px;
        }
        .tianjia{
            float:right;
            margin-right:100px;
        }

    </style>
</head>
<body>
<div class="wrap">
    <table class="hd-table hd-table-form hd-form">
        <thead>
        <tr>
            <td width="30"></td>
            <td>属性id</td>
            <td>属性名称</td>
            <td>属性类别</td>
            <td>属性值</td>
            <td width="200">操作</td>
        </tr>
        </thead>

        <foreach from="$typeAttr" key="$k" value="$v">
        <tbody>
            <td width="30"></td>
            <td>{$v.taid}</td>
            <td>{$v.taname}</td>
            <if value="$v['class']==0">
                <td>属性</td>
            <else/>
                <td>规格</td>
            </if>
            <td>{$v.tavalue}</td>
            <td width="200">
                <a href="{|U:'Admin/ShopTypeAttr/edit',array('taid'=>$v['taid'])}" class="hd-btn hd-btn-danger hd-btn-sm">修改</a>
                <a href="{|U:'Admin/ShopTypeAttr/del',array('taid'=>$v['taid'])}" class="hd-btn hd-btn-success hd-btn-sm">删除</a>
            </td>
        </tbody>
        </foreach>
      
    </table>
    <div class="tianjia">
        <!-- u函数里面的get参数用原生 $_GET['tid']-->
        <a href="{|U:'Admin/ShopTypeAttr/add',array('tid'=>$_GET['tid'])}" class="hd-btn hd-btn-primary hd-btn-sm">添加属性</a>
    </div>
    <div class="page_hdjob">
        
    </div>
</div>

</body>
</html>


